<template>
	<view class="my-buy">
		<view class="buy-list" @click="toIsbuy">
			<view class="list-lf">
				<view class="tag-box">
					<text class="tag">挖机</text>
					<text class="time">发布时间:2023-04-14</text>
				</view>
				<view>挖掘机</view>
			</view>
			<view class="list-rg">
				<u-button type="error" class="btn" size="mini">删除</u-button>
				<u-button type="warning" class="btn" size="mini">修改</u-button>
				<u-button type="primary" size="mini">置顶</u-button>
			</view>
		</view>
		<!-- 2 -->
		<view class="buy-list">
			<view class="list-lf">
				<view class="tag-box">
					<text class="tag">挖机</text>
					<text class="time">发布时间:2023-04-14</text>
				</view>
				<view>挖掘机</view>
			</view>
			<view class="list-rg">
				<u-button type="error" class="btn" size="mini">删除</u-button>
				<u-button type="warning" class="btn" size="mini">修改</u-button>
				<u-button type="primary" size="mini">置顶</u-button>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {


			}
		},
		methods: {
			toIsbuy() {
				uni.navigateTo({
					url: "/pages/issue/issueBuy"
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.my-buy {
		background-color: #f5f5f5;
		padding: 10rpx 0;

		.buy-list {
			padding: 20rpx;
			margin-bottom: 10rpx;
			background-color: #fff;
			display: flex;
			justify-content: space-between;

			.list-lf {
				.tag-box {
					display: flex;
					margin-bottom: 60rpx;

					.tag {
						display: block;
						padding: 10rpx 20rpx;
						color: #fff;
						background-color: #f9969d;
					}

					.time {
						margin-left: 60rpx;
						color: #9897b1;
					}
				}

			}

			.list-rg {
				display: flex;
				flex-direction: column;

				.btn {
					margin-bottom: 5rpx;
				}
			}
		}
	}
</style>
